package com.csst.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.csst.bean.User;
import com.csst.dao.UserDAO;
import com.csst.service.UserService;

@Service
public class UserServiceImpl implements UserService {
   @Autowired
   private  UserDAO dao;

	public void Regist(User user) {
		dao.save(user);
	}

	public User Login(User user) {
		
		return dao.getUser(user);
	}



}
